import request from '@/utils/request'

export function findAll() {
  return request({
    url: '/employee/findAll',
    method: 'get'
  })
}



export function findAllShebei() {
  return request({
    url: '/Shebei/findAll',
    method: 'get'
  })
}
export function findAllPerformance() {
  return request({
    url: '/employee/performance',
    method: 'get'
  })
}
export function findAllQuality() {
  return request({
    url: '/dayOrder/getQuality',
    method: 'get'
  })
}

export function add(dept) {
  return request({
    url: '/depts',
    method: 'post',
    data: dept
  })
}

export function resubmit1(dept) {
  return request({
    url: '/dayOrder/resubmit',
    method: 'put',
    data: dept
  })
}

export function confirm1(id,name) {
  const url= `/dayOrder/confirm/${id}/${name}`;
  return request({
    url: url,
    method: 'get',
  })
}

export function reject1(id,name,reason) {
  const url= `/dayOrder/reject/${id}/${name}/${reason}`;
  return request({
    url: url,
    method: 'get',
  })
}


export function deleteById(id) {
  return request({
    url: '/depts/' + id,
    method: 'delete'
  })
}

export function selectById(id) {
  return request({
    url: '/depts/' + id,
    method: 'get'
  })
}
